record [-S] [-s speed] [-t limit] [-b bits] [-q] [-h] [filename]
Record samples data coming from your external devices like microphones, recorders, CD-players, radios; whatever connected to your sound card. The data will be saved in the .WAV-format. If you don't use any switches, default values will be taken.
Defaults for recording:
time - 10 seconds
bits - 8 Bits
mode - mono
If no files are given, the input of the player will be taken from stdin, the output of the recorder will be written to stdout. All messages (which can be suppressed with the -q switch) will be written to stderr.
-s speed - sets the sample frequency in Hz
-t limit - sets the time limit in seconds
-b bits - sets the sample size to 8, 12 or 16 bits. The Soundblaster card supports only 8 bit!
-q - quiet mode, no terminal output
/usr/local/bin/record - record
The player checks the header of the files. The error-message "wrong speed/freq." is only a warning and doesn't influence the playing.
The error handling is not very good.
The output of the recording in stereo mode seems to be stereo samples with mono data. (Stereo samples will be played in stereo, samples recorded with this command won't!)
play sample.wav
plays this sample too
record -S -t 10 -s 10000 test.wav records data in stereo with a speed of 10000 Hz for 10 seconds
e-mail: af1@irz.inf.tu-dresden.de